package cn.xiaopengstack.domain.activity.service.sku;

import cn.xiaopengstack.domain.activity.model.entity.SkuProductEntity;
import cn.xiaopengstack.domain.activity.repository.IRaffleActivityRepository;
import cn.xiaopengstack.domain.activity.service.IRaffleActivitySkuProductService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiangyangang
 */
@Service
public class RaffleActivitySkuProductService implements IRaffleActivitySkuProductService {

    private final IRaffleActivityRepository raffleActivityRepository;

    public RaffleActivitySkuProductService(IRaffleActivityRepository raffleActivityRepository) {
        this.raffleActivityRepository = raffleActivityRepository;
    }

    @Override
    public List<SkuProductEntity> querySkuProducts(Long activityId) {
        return raffleActivityRepository.querySkuProducts(activityId);
    }
}
